<?php
namespace app\api\validate;
/** 
* Document
*/
class NewAddr extends Base {
    
    protected $rule = [
        'name' => 'require|isNotEmpty',
        // 'mobile' => 'require|isMobile',
        'mobile' => 'require',
        'province' => 'require|isNotEmpty',
        'city' => 'require|isNotEmpty',
        'country' => 'require|isNotEmpty',
        'detail' => 'require|isNotEmpty'
    ];
    protected $message = [
        'name' => '姓名不能为空',
        'mobile' => '手机号格式错误',
        'province' => '省份不能为空',
        'city' => '市不能为空',
        'country' => '乡、区、街道 不能为空',
        'detail' => '详细地址不能为空',
    ];
 

}